package com.xmut.mall.order.controller;

import java.util.Arrays;
import java.util.Map;

import com.xmut.mall.order.annotation.CheckJwt;
import com.xmut.mall.order.dto.OrderComplaintCommunicationDto;
import com.xmut.mall.order.utils.RespBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import com.xmut.mall.order.entity.OrderComplaintCommunicationEntity;
import com.xmut.mall.order.service.OrderComplaintCommunicationService;
import com.xmut.mall.order.utils.PageUtils;
import com.xmut.mall.order.utils.R;

@RestController
@RequestMapping("order/ordercomplaintcommunication")
public class OrderComplaintCommunicationController {
    @Autowired
    private OrderComplaintCommunicationService orderComplaintCommunicationService;

    /**
     * 投诉过程中三个角色进行交流
     * @param dto
     * @return
     */
    @CheckJwt
    @PostMapping("/communication")
    public RespBean communication(@RequestBody OrderComplaintCommunicationDto dto){
        return orderComplaintCommunicationService.communication(dto);
    }

}
